From ecceb20a8b13df9af33a052b75fab4fa3ae189ea Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 8 Jan 2004 21:01:21 +0000 Subject: [PATCH] Don't use bitwise operators on booleans. (#130923, reported by Telsa Thu Jan 8 22:01:14 2004 Matthias Clasen * queryloaders.c (loader_sanity_check): Don't use bitwise operators on booleans. (#130923, reported by Telsa Gwynne, fix by Dave Jones) --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/queryloaders.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 6a18fb3145..a0a2b932cb 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 8 22:01:14 2004 Matthias Clasen + + * queryloaders.c (loader_sanity_check): Don't use bitwise operators + on booleans. (#130923, reported by Telsa Gwynne, fix by Dave Jones) + 2004-01-06 Federico Mena Quintero * gdk-pixbuf-io.c (gdk_pixbuf_save): Escape an ampersand in the diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c index 41c4c3669d..f5428f30da 100644 --- a/gdk-pixbuf/queryloaders.c +++ b/gdk-pixbuf/queryloaders.c @@ -100,7 +100,7 @@ loader_sanity_check (const char *path, GdkPixbufFormat *info, GdkPixbufModule *v goto error; } - if ((info->flags & GDK_PIXBUF_FORMAT_WRITABLE) & !vtable->save) + if ((info->flags & GDK_PIXBUF_FORMAT_WRITABLE) && !vtable->save) { error = "loader claims to support saving but doesn't implement save"; goto error; -- 2.30.2